package me.angeldevil.autoscrollviewpager.demo;

import ohos.agp.components.Component;
import ohos.agp.components.Text;

public class TextFragment extends BaseFraction {
    private String params;
    private static final String ARG_PARAM1 = "param1";

    @Override
    protected void initComponent(Component component) {
        Text tv = (Text) component.findComponentById(ResourceTable.Id_text);
        tv.setText(params);
    }

    @Override
    protected int getUIContent() {
        return ResourceTable.Layout_faction_text;
    }

    public TextFragment(String params) {
        this.params = params;
    }
}
